/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package domain;

import java.io.Serializable;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 *
 * @author Dell
 */
@Entity
public class Format implements Serializable {

        private static final long serialVersionUID = 1L;

        
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        private Long id;
        private String name;
        //private String elements; // eg "*BOLD*/FN/*COMMAN/*/UNDERLINE/*/SN/*/url/*/title/*/SPACE/*/DOT"
                                  //  *BOLD*[TITLE+DOT]*SPACE**UNDERLINE*SN
        private String  book;
        private String edbook;
        private String  journal;
        private String conference;
        private String  website;
        private String  mediaStill;
        private String  mediaMotion;
        private String mediaAudio;


        public Format() {
                
        }
 

               
        public Long getId() {
                return id;
        }

        public void setId(Long id) {
                this.id = id;
        }

        @Override
        public int hashCode() {
                int hash = 0;
                hash += (id != null ? id.hashCode() : 0);
                return hash;
        }

        @Override
        public boolean equals(Object object) {
                // TODO: Warning - this method won't work in the case the id fields are not set
                if (!(object instanceof Format)) {
                        return false;
                }
                Format other = (Format) object;
                if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
                        return false;
                }
                return true;
        }

        @Override
        public String toString() {
                return "domain.Format[ id=" + id + " ]";
        }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name; 
    }

    public String getBook() {
        return book;
    }

    public void setBook(String book) {
        this.book = book;
    }

    public String getEdbook() {
        return edbook;
    }

    public void setEdbook(String edbook) {
        this.edbook = edbook;
    }

    public String getJournal() {
        return journal;
    }

    public void setJournal(String journal) {
        this.journal = journal;
    }

    public String getConference() {
        return conference;
    }

    public void setConference(String conference) {
        this.conference = conference;
    }

    public String getWebsite() {
        return website;
    }

    public void setWebsite(String website) {
        this.website = website;
    }

    public String getMediaStill() {
        return mediaStill;
    }

    public void setMediaStill(String mediaStill) {
        this.mediaStill = mediaStill;
    }

    public String getMediaMotion() {
        return mediaMotion;
    }

    public void setMediaMotion(String mediaMotion) {
        this.mediaMotion = mediaMotion;
    }

    public String getMediaAudio() {
        return mediaAudio;
    }

    public void setMediaAudio(String mediaAudio) {
        this.mediaAudio = mediaAudio;
    }
        
        
}
